"""
    Author:
    Date: 2018-10-30

    日志辅助类。
"""

import logging


class Log(object):
    @staticmethod
    def debug(message):
        log = logging.getLogger('django')
        log.debug(message)

    @staticmethod
    def info(message):
        log = logging.getLogger('django')
        log.info(message)

    @staticmethod
    def warn(message):
        log = logging.getLogger('django')
        log.warning(message)

    @staticmethod
    def error(message):
        log = logging.getLogger('django')
        log.error(message)


if __name__ == '__main__':
    print('ok')
